
// const baseURL = 'http://nnruanyun.51vip.biz';
const baseURL = 'http://2h391v9115.zicp.vip'; 
// const baseURL = 'http://121.36.110.10:8080'; 
// const baseURL = 'http://www.cnhdit.com'; 


var get_headers=()=>{
	let getJosn = {
		headers:{
			"content-type":"application/x-www-form-urlencoded"
			// ,"userid": uni.getStorageSync('userid')
			// "XX-Token": uni.getStorageSync("XX-Token"),
		}
	}
	return getJosn
}
var userid = uni.getStorageSync('userid');
var stu_login =()=>{
	uni.reLaunch({
		url: "/pages/login/login"
	})
}
const api = {
	baseURL: baseURL,
	UploadFile: baseURL + '/member/Up/upload',
	//获取请求头部
	get_head:()=>get_headers().headers,
	//处理未登陆状态
	stu_login:()=>{stu_login()},
	//发送验证码
	sendCode: baseURL +'/sendCode',
	//登陆
	doLogin: baseURL +'/doLogin',
	//微信登陆
	wxLogin: baseURL +'/ttsc/api/doLoginByWx',
	//QQ登陆
	doLoginByQQ: baseURL +'/ttsc/api/doLoginByQQ',
	
	// 企业信息
	getCompanyName: baseURL + '/ttsc/api/companyIdToName',
	
	// 信息共享：催办事项
	infoShareUrgeList: baseURL + '/xunjianNotice/yujingList',
	
	// 信息共享：特种档案
	infoShareSpecialCertList: baseURL + '/tezhongCert/certList',
	infoShareSpecialEquipList: baseURL + '/tezhongCert/equipList',
	infoShareSpecialMemberList: baseURL + '/tezhongCert/teUserList',
	
	// 应急管理：应急广播
	emergencyBroadcastList: baseURL + '/urgentPlan/myBroadcastList',
	emergencyBroadcastAdd: baseURL + '/urgentPlan/saveBroadcast',
	
	// 应急管理：应急预案
	emergencyPlanList: baseURL + '/urgentPlan/myPlanList',
	emergencyPlanExam: baseURL + '/urgentPlan/examById',
	emergencyPlanExamSubmit: baseURL + '/urgentPlan/saveExam',
	
	// 应急管理：应急物资
	emergencyMaterialList: baseURL + '/urgentPlan/goodsMatch',
	
	// 应急管理：应急演练
	emergencyDrillList: baseURL + '/urgentPlan/yanlianList',
	
	// 教育培训：安全培训
	eduSafeNoticeList: baseURL + '/mobile/api/eduNotice',
	eduSafeTrainOlineStudy: baseURL + '/mobile/api/studyOnline',
	eduSafeTrainOlineStudySubmitTime: baseURL + '/mobile/api/doStudyOnline',
	eduSafeTrainScene: baseURL + '/mobile/api/studyFaceList',
	eduSafeTrainSceneDetail: baseURL + '/mobile/api/studyFaceDetail',
	eduSafeTrainSceneSignIn: baseURL + '/mobile/api/signInFace',
	eduSafeTrainSceneSignOut: baseURL + '/mobile/api/signOutFace',
	
	// 教育培训：安全会议
	eduSafeMeetingAdd: baseURL + '/meeting/saveByMobile',
	eduSafeMeetingCancel: baseURL + '/meeting/cancelMeeting',
	eduSafeMeetingDetail: baseURL + '/meeting/detail',
	eduSafeMeetingMyMeeting: baseURL + '/meeting/myMeeting',
	eduSafeMeetingStart: baseURL + '/meeting/startMeet',
	eduSafeMeetingOver: baseURL + '/meeting/updateMeet',
	eduSafeMeetingSign: baseURL + '/meeting/signCode',
	eduSafeMeetingJoinMember: baseURL + '/meeting/joinMan',
	eduSafeMeetingResolveList: baseURL + '/meeting/getMeetInfo',
	eduSafeMeetingSignIn: baseURL + '/meeting/signInMeet',
	
	// 教育培训：岗前培训
	eduPreTrainList: baseURL + '/mobile/api/preworkStudyList',
	eduPreTrainSign: baseURL + '/mobile/api/signPrework',
	eduPreTrainTemp: baseURL + '/mobile/api/preworkAddlist',
	eduPreTrainCreate: baseURL + '/mobile/api/preworkPublish',
	
	// 教育培训：考试专栏
	edutExamNotes: baseURL + '/examList/examNotice',
	edutExamImitateList: baseURL + '/examList/randExam',
	edutExamImitateSubmit: baseURL + '/examList/saveMoni',
	edutExamFormalList: baseURL + '/examList/formalExam',
	edutExamFormalDetail: baseURL + '/examList/startExam',
	edutExamFormalSubmit: baseURL + '/examList/saveFormal',
	edutExamNoJoinMember: baseURL + '/examList/notJoinMan',
	edutExamRecordList: baseURL + '/examList/myExam',
	edutExamRecordDetail: baseURL + '/examList/examLogsDetail',
	
	// 教育培训：视频宣教
	eduVideoMyTaskList: baseURL + '/video/videoList',
	eduVideoMyTaskUnJoinMembers: baseURL + '/video/notDoneMan',
	eduVideoMyTaskLog: baseURL + '/video/logsDetail',
	eduVideoMyTaskLogAdd: baseURL + '/video/addLog',
	eduVideoMyTaskAddNotes: baseURL + '/video/addNotes',
	
	// 网格责任：两单一卡
	gridSafeDutyList: baseURL + '/xunjianPositions/mobileDankaSafe',
	gridSafeDutySubList: baseURL + '/xunjianPositions/mobileChildDept',
	gridUploadSignName: baseURL + '/xunjianPositions/signName',
	gridSafeDutyUrge: baseURL + '/xunjianPositions/cuibanSafe',
	gridSafeDutyUrgeSign: baseURL + '/xunjianPositions/cuibanSign',
	gridRiskCheckList: baseURL + '/xunjianPositions/yinhuanpaichaList',
	gridRiskCheckDetail: baseURL + '/xunjianPositions/paichaDetail',
	gridEmergencyList: baseURL + '/xunjianPositions/chuzhiKa',
	gridEmergencyDetail: baseURL + '/xunjianPositions/chuzhiKaDetail',
	
	// 网格责任：风险网格管理
	riskGridManageList: baseURL + '/mobile/api/fengxianwangge',
	riskGridManageDetail: baseURL + '/mobile/api/fxwgDetail',
	
	// 网格责任：员工奖惩
	gridEmployeeRewardList: baseURL + '/mobile/api/userWard',
	
	// 作业票
	jobTicketMemberList: baseURL + '/ssp/api/userList',
	jobTicketApply: baseURL + '/jobTicket/saveTicket',
	jobTicketListMine: baseURL + '/jobTicket/myApplyTicket',
	jobTicketListCheck: baseURL + '/jobTicket/myShenpiTicket',
	jobTicketListSuperSign: baseURL + '/jobTicket/jianduSave',
	jobTicketListApprovalSign: baseURL + '/jobTicket/shenpiSave',
	jobTicketListStartSign: baseURL + '/jobTicket/xianchangSave',
	jobTicketListEndSign: baseURL + '/jobTicket/endJobApply',
	jobTicketListAcceptSign: baseURL + '/jobTicket/yanshouSave',
	jobTicketSearchList: baseURL + '/jobTicket/searchBy',
	jobTicketLogList: baseURL + '/jobTicket/jobLogs',
	jobTicketCheckList: baseURL + '/jobTicket/jobChecks',
	jobTicketCheckDetail: baseURL + '/jobTicket/jobChecksDetail',
	jobTicketCheckSubmit: baseURL + '/jobTicket/saveChecks',
	
	// 风险巡查
	getUserInfo: baseURL + '/ssp/api/getMyInfo',
	normalCheck: baseURL + '/xunjianMission/myMissions',
	transferTask: baseURL + '/xunjianMission/moveMission',
	cancelTransferTask: baseURL + '/xunjianMission/cancelMoveMission',
	confirmReceiveTask: baseURL + '/xunjianMission/sureMoveMission',
	riskAlarm: baseURL + '/xunjianMission/myNotices',
	riskLevel: baseURL + '/xunjianPositions/positionCount',
	patrolList: baseURL + '/xunjianPositions/xunjianList',
	riskSpecial: baseURL + '/mobile/api/zongZuanList',
	riskSpecialDetail: baseURL + '/mobile/api/zongZuanDetail',
	riskSpecialSubmit: baseURL + '/mobile/api/zongZuanSave',
	riskHandleList: baseURL + '/mobile/api/jiaojieList',
	riskHandleDetail: baseURL + '/mobile/api/jiaojieDetail',
	riskHandleUserInfo: baseURL + '/mobile/api/jiaojieSend',
	riskHandleStart: baseURL + '/mobile/api/saveJiaojie',
	riskHandleReceive: baseURL + '/mobile/api/saveCheck',
	riskHandleCheck: baseURL + '/mobile/api/jiaojieChecks',
	
	// 隐患治理
	dangerTopCount: baseURL + '/ssp/api/dangerMange',
	dangerRiskList: baseURL + '/ssp/api/sspListBy',
	dangerHandleDetail: baseURL + '/fxssp/detail',
	dangerHandleLog: baseURL + '/ssp/api/sspLogs',
	dangerRectSubmit: baseURL + '/ssp/api/submitSsp',
	dangerToCoporator: baseURL + '/ssp/api/moveTo',
	dangerCheckPass: baseURL + '/ssp/api/passCheck',
	dangerCheckFail: baseURL + '/ssp/api/noPassCheck',
	dangerSubmitError: baseURL + '/ssp/api/cancelSsp',
	dangerSubmitSuggest: baseURL + '/ssp/api/addSugg',
	dangerLookEdit: baseURL + '/ssp/api/doneNow',
	dangerUrge: baseURL + '/xunjianPositions/cuiban',
	dangerNotice: baseURL + '/xunjianPositions/notice',
	dangerBranch: baseURL + '/xunjianPositions/myChildCount',
	dangerTask: baseURL + '/xunjianPositions/myDetail',
	dangerComment: baseURL + '/xunjianPositions/pingjia_info',
	dangerCommentSubmit: baseURL + '/xunjianPositions/pingjia',
	
	// 网格责任
	gridStaffKPI: baseURL + '/xunjianPositions/kaoheUser',
	
	//修改用户的头像
	uploadUserLogo: baseURL +'/ttsc/api/uploadUserLogo',
	//修改密码
	updatePassword: baseURL +'/updatePassword',
	
	//注册
	doRegister: baseURL +'/doRegister',
	//完善信息
	editCompanyInfo: baseURL +'/ttsc/api/editCompanyInfo',
	//修改名称
	editName: baseURL +'/ttsc/api/editName',
	//获取个人信息
	getUserDetail: baseURL +'/ttsc/api/getUserDetail',
	
	//上传文件
	upload: baseURL +'/ttsc/api/upload',
	//上传文件Logo
	uploadLogo: baseURL +'/ttsc/api/uploadLogo',
	
	//6.查询企业信息
	findCompanyInfo: baseURL +'/ttsc/api/findCompanyInfo',
	//1.隐私条例2：2.关于我们—1
	getSettings: baseURL +'/ttsc/api/getSettings',


	// 首页轮播图
	getIndexLunbo: baseURL +'/ttsc/api/getIndexLunbo',
	
	
	
	//信息分类
	list: baseURL +'/ttCart/list',
	//信息
	ttNews_list: baseURL +'/ttNews/list',
	//10.查看信息详情
	detail: baseURL +'/ttNews/detail',
	//11.点赞GET
	doZan: baseURL +'/ttNews/doZan',
	//12收藏GET
	doStore: baseURL +'/ttNews/doStore',
	//13评论GET
	doComment: baseURL +'/ttNews/doComment',
	
	
	//3-1.一键评测（我没有检测的项目）
	myUndoQues: baseURL +'/ttsc/api/myUndoQues',
		
	//3-2.评测题详情
	findProByQues: baseURL +'/ttsc/api/findProByQues',
	//3-3.答题--每道题都向后台发送一次
	api_dati: baseURL +'/ttsc/api/dati',

	// 3-4.结束答题--答题结束后向后台发送
	finishDati: baseURL +'/ttsc/api/finishDati',
	//3-6  我已完成的检测列表，显示在一键评测我未完成的后面。
	myDoneQues: baseURL +'/ttsc/api/myDoneQues',
	//3-5 我的答案列表
	datiLog: baseURL +'/ttsc/api/datiLog',

	
	// 管理员判定接口：true是管理员
	isManager: baseURL +'/ttsc/api/isManager',
	//1.任务列表
	listByUser: baseURL +'/task/listByUser',
	// 3.发起任务（管理员才能发起）
	tasksave: baseURL +'/task/save',
	// 4.执行人列表
	getUnderUser: baseURL +'/ttsc/api/getUnderUser',
	// 4.执行人列表下拉接口
	getUserSelect: baseURL +'/ttsc/api/getUserSelect',
	
	// 4.修改任务
	taskUpdate: baseURL +'/task/update',
	// 删除任务（只有管理员能删）
	taskRemove: baseURL +'/task/remove',
	// 2.任务详情
	taskDetail: baseURL +'/task/detail',
	// 2填写回复意见
	taskLogAdd: baseURL +'/taskLog/save',

	
	// 1.轮播图
	getMallLunbo: baseURL +'/ttsc/api/getMallLunbo',
	// 2.首页模块参数
	getMallIndex: baseURL +'/ttsc/api/getMallIndex',
	
	
	
	//2.1.商品列表
	mMallGoods: baseURL +'/ttsc/api/mMallGoods',
	//2.2商品分类列表
	mMallCartGoods: baseURL +'/ttsc/api/mMallCartGoods',
	
	//2.2/ttsc/api/mallLunbo轮播
	mallLunbo: baseURL +'/ttsc/api/mallLunbo',
	
	//2.3商品详情
	mallGoodsDetail: baseURL +'/ttsc/api/mallGoodsDetail',
	//2.32-4加入购物车
	joinShoppingCar: baseURL +'/ttsc/api/joinShoppingCar',
	//购物车
	mallShoppingcar_list: baseURL +'/mallShoppingcar/list',
	//2-7 地址三级列表
	addressList: baseURL +'/ttsc/api/addressList',
	//2-5 获取用户预存的地址
	mallAddress_list: baseURL +'/mallAddress/list',
	//2-12新增我的地址
	mallAddress_save: baseURL +'/mallAddress/save',
	//2-12新增我的地址
	mallAddress_update: baseURL +'/mallAddress/update',
	//2-14 删除地址
	mallAddress_remove: baseURL +'/mallAddress/remove',
	//2-16购物车内数量加减
	updateShoppingcarNum: baseURL +'/ttsc/api/updateShoppingcarNum',
	//2-9  从购物车中提交订单
	buyFromShoppingcar: baseURL +'/ttsc/api/buyFromShoppingcar',
	//2-9  从购物车删除
	mallShoppingcarremove: baseURL +'/mallShoppingcar/remove',
	
	
	//2-10   微信支付
	wxpay: baseURL +'/wxpay/appPay',
	//2-10   支付宝支付
	appPay: baseURL +'/alipay/appPay',
	//2-8设置默认地址
	setDefaultAddress: baseURL +'/ttsc/api/setDefaultAddress',
	//2-15  订单列表
	mallOrder_list: baseURL +'/mallOrder/list',
	//2-13确认收货
	submitRecive: baseURL +'/ttsc/api/submitRecive',
	//查询物流
	queryWl: baseURL +'/ttsc/api/queryWl',
	//评价订单
	mallCommentLogsSave: baseURL +'/mallCommentLogs/save',
	//取消订单
	cancelOrder: baseURL +'/mallOrder/cancelOrder',
	
	
	
	
	//商城自动补全的接口
	queryText: baseURL +'/ttsc/api/queryText',
	//积分商城列表
	pointGoodslist: baseURL +'/pointGoods/list',
	//积分商城下单
	pointOrderSave: baseURL +'/pointOrder/save',
		
	
	
	
	
	//4-1 预约分类
	yyCart_list: baseURL +'/yyCart/list',
	//4-2  检测项目列表
	yyYuyue_list: baseURL +'/yyYuyue/list',
	// 4-6  在线专家列表
	zjZhuanjia: baseURL +'/zjZhuanjia/list',
	//机器人
	autoAnswer: baseURL +'/ttsc/api/autoAnswer',
	//聊天记录保存
	messageLogSave: baseURL +'/messageLog/save',
	//查询聊天记录
	// messageLogList: baseURL +'/messageLog/list',
	messageLogList: baseURL +'/messageLog/listByST',
	
	// 热更新接口
	verseionCheck: baseURL +'/ttsc/api/verseionCheck',



	//2.底部提供多张底图可选择，如图三。注意分页，分页方式和之前的新闻那些是一样的。
	signImgs: baseURL +'/ttsc/api/signImgs',
	 //签到接口：/ttsc/api/signIn?openid=？
	 // signIn: baseURL +'/ttsc/api/signIn',
	 signIn: baseURL +'/ttsc/api/signInNew',
	//3.随机文案选择，请求接口，点击复制到粘贴板
	signWord: baseURL +'/ttsc/api/signWord',
	//获取二维码路径
	signTo: baseURL +'/ttsc/api/signTo',
	//获取图片二维码
	signToQr: baseURL +'/ttsc/api/signToQr',
	
	
	
	// 8.VIP产品列表接口
	getVips: baseURL +'/ttsc/api/getVips',
	// 充值VIP接口（POST)
	chargeVip: baseURL +'/ttsc/api/chargeVip',
	// 获取vip等级接口
	getVipstatus: baseURL +'/ttsc/api/getVipstatus',
	// 是否购买为文章或视频接口
	isBuy: baseURL +'/ttNews/isBuy',
	// 2.单独购买
	buyNews: baseURL +'/ttNews/buyNews',
	// 微课堂列表
	keVideolist: baseURL +'/keVideo/list',
	//keCart/list微课堂分类列表
	keCartlist: baseURL +'/keCart/list',
	// 视频详情
	keVideodetail: baseURL +'/keVideo/detail',
	
	
	
	// 新增
	//项目筛选
	getMyTopic: baseURL +'/dtTopic/getMyTopic',
	// 1.分类列表
	getDangercart: baseURL +'/ssp/api/getDangercart',
	// 3.风险巡查
	// 3.1一级页面列表
	fxCheckList: baseURL +'/ssp/api/fxCheckList',
	// 风险巡查提交
	saveFxCheck: baseURL +'/ssp/api/saveFxCheck',
	// 1.2.隐患分类
	getDangerCartBy: baseURL +'/ssp/api/getDangerCartBy',
	
	//隐患提交
	fxsspsave: baseURL +'/fxssp/save',
	fxsspsave2: baseURL +'/fxssp/save2',
	// 日志接口
	fxsspsspLog: baseURL +'/fxssp/sspLog',
	
	// 文件预览接口..将url的完整路径修改既可
	// prview = function(){
	//                 var url = 'http://wx.itshop.top/888.xlsx'; //要预览文件的完整访问地址
	//                 window.open('http://www.nnruanyun.com:8012/onlinePreview?		url='+encodeURIComponent(url));
	// }
	
	// 风险治理页面接口上面四个数字
	findStatus: baseURL +'/fxssp/findStatus',
	// 风险治理页面:部门列表
	deptList: baseURL + '/ttsc/api/getDeptList',
	// 风险治理页面:左滑取消
	cancelDanger: baseURL + '/ssp/api/cancelDanger',
	// 风险治理页面:右滑推送
	pushDanger: baseURL + '/ssp/api/pushDanger',
	// 风险治理页面:风险详情
	dangerDetail: baseURL + '/ssp/api/missionDetail',
	// 风险治理页面:提交风险处理
	dangerFinish: baseURL + '/ssp/api/doneMission',
	
	//1215.1.2企业健康指数。两个圈是一样的
	getCompanyPoint: baseURL +'/ssp/api/getCompanyPoint',
	//工具为文章列表
	toolsList: baseURL +'/ttsc/api/toolsList',
	// 工具库分类列表
	toolCartCateList: baseURL +'/ttsc/api/toolCartList',
	//邮件发送文件
	toolCartMail: baseURL +'/ttsc/api/sendEmailFile',
	// 文件下载地址
	toolCartDownload: baseURL +'/ttsc/api/getFileUrl',
	// 工具文章详情
	tooDetail: baseURL + '/ttsc/api/toolDetail',
	
	
	// 组织架构
	// 2.1 组织架构
	getSubDept: baseURL +'/ssp/api/getSubDept',
	// 获取更多用户
	getMoreSubUser: baseURL +'/ssp/api/getMoreSubUser',
	// 据部门ID获取子部门和子用户数据
	getSubDeptByDept: baseURL +'/ssp/api/getSubDeptByDept',
	// 查询是否是管理员
	isEmployee:  baseURL +'/ssp/api/isEmployee',
	// 添加新成员 输入手机号添加
	addUser: baseURL +'/ssp/api/addUser',
	// 添加子部门
	addSubDept:  baseURL +'/ssp/api/addSubDept',
	// 我能查看的部门列表  用于编辑员工信息时获取deptid
	findMySubDept: baseURL +'/ssp/api/findMySubDept',
	// 编辑员工信息
	updateUser: baseURL+'/ssp/api/updateUser',
	// 完成任务
	doneMission: baseURL +'/ssp/api/doneMission',
	
	
	// 评论留言
	saveFxComment: baseURL +'/ssp/api/saveFxComment',
	// 风险告知
	fxnotifyList: baseURL +'/ssp/api/fxnotifyList',
	// 风险管控
	fxPointDetail: baseURL +'/ssp/api/fxPointDetail',
	
	
	// 企业预警列表
	getIndexWarning: baseURL +'/ssp/api/getIndexWarning',
	readWarningMsg: baseURL + '/ssp/api/hasRead',
	
	// 登录用户的企业预警一级页面 
	getFxWarning: baseURL +'/ssp/api/getFxWarning',
	
	
	//聊天
	sendMsg: baseURL +'/ssp/api/sendMsg',
	
}




export default api
